import request from '@/utils/request'
// 页面渲染
export function getMonthAPI(params) {
  return request({
    url: '/parking/card/list',
    params
  })
}
// 获取编辑页月卡详情
export function editmonthAPI(id) {
  return request({
    url: `/parking/card/detail/${id}`,
    method: 'GET'
  })
}
// 添加月卡
export function createmonthAPI(data) {
  return request({
    url: '/parking/card',
    method: 'POST',
    data
  })
}
// 删除
export function delimitersAPI(ids) {
  return request({
    url: `/parking/card/${ids}`,
    method: 'DELETE'
  })
}
// 编辑月卡
export function redactAPI(data) {
  return request({
    url: '/parking/card/edit',
    method: 'PUT',
    data
  })
}
// 获取月卡占有率
export function getdataAPI(Authorization) {
  return request({
    url: '/parking/card/proportion',
    params: { Authorization }
  })
}

